<?php
require_once('../../config.php');
Doctrine::loadModels('../../models');

if( $_GET["communication_id"])
{
	$communication_id = strip_tags($_GET["communication_id"]);
	
	file_put_contents  ( "param_delete_id.txt", $communication_id);

	/// Build the SQL
	
	$q = Doctrine_Query::create();

	$q->update('Communication')
          ->set('deleted', '1') 
          ->where('communication_id ='.$communication_id);
              
	$rows = $q->execute();          
   
	//print $rows; // the number of affected rows
 
}

?>